package net.lcqf.tcp.game.match;

/**
 * +----------------------------------------------------------------------
 * | Talk To [ 聊来改善地区金融服务环境，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2018-2025 聊来All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed ( <a href="http://www.apache.org/licenses/LICENSE-2.0">apache</a> )
 * +----------------------------------------------------------------------
 * | @Author: 聊来 <18970881148@qq.com>
 * +----------------------------------------------------------------------
 * | DateTime: 2025/3/8 21:27
 * +----------------------------------------------------------------------
 */
public enum TeamType {

    ONE("1v1"),
    FIVE("5v5");


    private final String type;

    TeamType(String type) {
        this.type = type;
    }

    public static TeamType resolveEvent(String type) {
        for (TeamType value : TeamType.values()) {
            if (value.type.equals(type)) {
                return value;
            }
        }

        return null;
    }
}
